package com.example.productservice.client;

import com.example.productservice.entity.PageVO;
import org.springframework.core.annotation.Order;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author lenovo
 * @Description
 * @Date2025/4/18 下午3:27
 */
@Component
//@FeignClient(value = "product-service",fallback = ProductServiceFeignClient.class)
public class OrderServiceFeignClientFallback implements OrderServiceFeignClient {


    @Override
    public ResponseEntity<Order> findOrderById(Integer id) {
        return null;
    }

    @Override
    public ResponseEntity<List<Order>> findAllOrders() {
        return null;
    }

    @Override
    public ResponseEntity<PageVO> findOrdersPage(Integer current, Integer pagesize) {
        return null;
    }

    @Override
    public ResponseEntity<String> addOrder(Order order) {
        return null;
    }

    @Override
    public ResponseEntity<String> updateOrder(Order order) {
        return null;
    }

    @Override
    public ResponseEntity<String> deleteOrder(Integer id) {
        return null;
    }

//    @Override
//    public ResponseEntity<Order> findOrderById(Integer id) {
//        Order order = new Order();
//        order.("这是降级商品数据");
//        return ResponseEntity.ok(order);
//    }


}
